package com.kehutong.basic.annex.entity;

import com.kehutong.basic.annex.enums.BusinessType;
import com.kehutong.basic.annex.enums.OperateType;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.util.List;

@Table(value="t_attribute_record", comment="归属记录", multi=true, idType = IDType.TIMESTAMP)
public class AttributeRecord extends Entity {

    private static final long serialVersionUID = -8594151322302778063L;

    protected AttributeRecord(String id) {
        super(id);
    }

    @Column(comment = "业务类型")
    private BusinessType businessType;

     //房子ID、小区ID、车位ID。。。
    @Column(comment="业务ID")
    private String businessId;

    @Column(comment = "目前归属名称")
    private String currentName;

    @Column(comment = "目前归属编号")
    private String currentNo;

    @Column(comment = "目前所有所属上级部门编号", length=127)
    private List<String> currentNos;

    @Column(comment = "原来归属名称")
    private String beforeName;

    @Column(comment = "原来归属编号")
    private String beforeNo;

    @Column(comment = "原来所有所属上级部门编号", length=127)
    private List<String> beforeNos;

    @Column(comment = "归属起始日期")
    private String startTime;

    // 截止日期 等于最新一条记录的创建日期
    @Column(comment = "归属截止日期")
    private String endTime;

    @Column(comment = "操作人ID")
    private String operateNo;

    @Column(comment = "操作人名称")
    private String operateName;


    public BusinessType getBusinessType() {
        return businessType;
    }

    public void setBusinessType(BusinessType businessType) {
        this.businessType = businessType;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getCurrentName() {
        return currentName;
    }

    public void setCurrentName(String currentName) {
        this.currentName = currentName;
    }

    public String getCurrentNo() {
        return currentNo;
    }

    public void setCurrentNo(String currentNo) {
        this.currentNo = currentNo;
    }

    public String getBeforeName() {
        return beforeName;
    }

    public void setBeforeName(String beforeName) {
        this.beforeName = beforeName;
    }

    public String getBeforeNo() {
        return beforeNo;
    }

    public void setBeforeNo(String beforeNo) {
        this.beforeNo = beforeNo;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getOperateNo() {
        return operateNo;
    }

    public void setOperateNo(String operateNo) {
        this.operateNo = operateNo;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }

    public List<String> getCurrentNos() {
        return currentNos;
    }

    public void setCurrentNos(List<String> currentNos) {
        this.currentNos = currentNos;
    }

    public List<String> getBeforeNos() {
        return beforeNos;
    }

    public void setBeforeNos(List<String> beforeNos) {
        this.beforeNos = beforeNos;
    }
}
